# 超市小票
items = ["苹果", "桔子", "香蕉", "葡萄", "红提", "西瓜"]
prices = [6.00, 3.20, 2.50, 14.80, 15.00, 1.50]
width = 30

# 打印表头
print("=" * width)
print("{:<{width}}    {:>10}".format("项目", "价格", width=width-12))
print("-" * width)

# 项目和价格
for item, price in zip(items, prices):
    print("{:<{width}}    {:>10.2f}".format(item, price, width=width-12))

# 打印底部分隔线
print("=" * width)